<?php
/**
 * Created by PhpStorm.
 * User: XYX
 * Date: 2017/9/5
 * Time: 10:55
 */

namespace App\Api\Transformers;


use App\Clubbanner;
use League\Fractal\TransformerAbstract;

class ClubbannerTransformer extends TransformerAbstract
{
    public function transform(Clubbanner $item)
    {
        return
            [
                'banner_id'=>$item['id'],
                'image_url'=>$item['image_url']
    ];
    }

}